package com.nut.service;

import com.nut.pojo.Cart;
import com.nut.pojo.CartItem;
import com.nut.pojo.Order;
import com.nut.pojo.OrderItem;


import java.util.List;

public interface OrderService{
    String createOrder(String order);
    List<Order> showMyOrders(int userId);

    List<Order> showAllOrders();

    List<OrderItem> showOrderDetail(String orderId);

    void sendOrder(String orderId);

    void receiveOrder(String orderId);
    String createOrderByList(Double totalPrice, List<CartItem> cart, Integer userId);
}
